<?php
/**
 * Description tab
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */

global $woocommerce, $post, $docsku;

        echo '<span style="display:none;">';
        $idsku = the_ID();
        echo '</span>';
	$docsku = get_post_custom($post->ID);
	$documentsku = $docsku['_sku'];
	foreach ( $documentsku as $printsku );

?>

		<h2>Product Documents &amp; Resources</h2>

<ul>
	<li><a href="http://www.siliconsolar.com/documents/silicon-solar-company-information-guide.pdf">Silicon Solar Company Information Brochure</a></li>
	<li><a href="http://www.siliconsolar.com/publication/sunmaxx-company-information-brochure/wppa_open">SunMaxx Company Information Brochure</a></li>
	<li><a href="http://techvideos.siliconsolar.com" target="_blank">Solar How-To &amp; Troubleshooting Videos</a></li>
    <li><a href="http://www.solarwebinars.com" target="_blank">Interested In Solar Hot Water? Check Out Our Solar Hot Water Training Videos</a></li>
</ul>

<h4>Product Documents</h4>
<ul>
		<?php

	echo '<span style="display:none;">';
		$skutag = $printsku;
	echo '</span>';

	$productdocs = new wp_Query('post_type=document&tag='.$idsku.'');
	while ($productdocs->have_posts()) :
	$productdocs->the_post(); ?>
			<li><a href="<?php the_permalink(); ?>" target="_blank"><?php the_title(); ?></a></li>
		<?php endwhile ; ?>
        <?php wp_reset_query(); ?>
</ul>
